package com.quanyan.stadium.utils.demo.SpringDemo.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by xiaoxiao on 17/1/18.
 */
public class DemoMain {
    public static void main(String[] args){
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(EventConfig.class);

        DemoPublish publish = app.getBean(DemoPublish.class);
        publish.pushMsg("1111");

        publish.pushMsg("34343");

        publish.pushMsg("demo");
        app.close();
    }
}
